package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_Col", catalog="Id")
public class YsCol extends BaseEntity<YsCol> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MenuId", nameJava="menuId", typeDataBase="bigint")
	private Long menuId;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="AuthType", nameJava="authType", typeDataBase="int")
	private Integer authType;
	@YsField(nameDataBase="FrontType", nameJava="frontType", typeDataBase="varchar")
	private String frontType;
	@YsField(nameDataBase="FrontEdit", nameJava="frontEdit", typeDataBase="tinyint")
	private Integer frontEdit;
	@YsField(nameDataBase="FrontShow", nameJava="frontShow", typeDataBase="tinyint")
	private Integer frontShow;
	@YsField(nameDataBase="FrontWidth", nameJava="frontWidth", typeDataBase="int")
	private Integer frontWidth;
	@YsField(nameDataBase="FrontFixed", nameJava="frontFixed", typeDataBase="tinyint")
	private Integer frontFixed;
	@YsField(nameDataBase="FrontAlign", nameJava="frontAlign", typeDataBase="tinyint")
	private Integer frontAlign;
	@YsField(nameDataBase="FrontConditionState", nameJava="frontConditionState", typeDataBase="tinyint")
	private Integer frontConditionState;
	@YsField(nameDataBase="FrontConditionType", nameJava="frontConditionType", typeDataBase="varchar")
	private String frontConditionType;
	@YsField(nameDataBase="FrontConditionRangeType", nameJava="frontConditionRangeType", typeDataBase="varchar")
	private String frontConditionRangeType;
	@YsField(nameDataBase="FrontConditionCode", nameJava="frontConditionCode", typeDataBase="varchar")
	private String frontConditionCode;
	@YsField(nameDataBase="FrontConditionDefault", nameJava="frontConditionDefault", typeDataBase="varchar")
	private String frontConditionDefault;
	@YsField(nameDataBase="DictKeyBase", nameJava="dictKeyBase", typeDataBase="varchar")
	private String dictKeyBase;
	@YsField(nameDataBase="FormLength", nameJava="formLength", typeDataBase="tinyint")
	private Integer formLength;
	@YsField(nameDataBase="FormTip", nameJava="formTip", typeDataBase="varchar")
	private String formTip;
	@YsField(nameDataBase="FormAddState", nameJava="formAddState", typeDataBase="tinyint")
	private Integer formAddState;
	@YsField(nameDataBase="FormAddType", nameJava="formAddType", typeDataBase="varchar")
	private String formAddType;
	@YsField(nameDataBase="FormAddRequired", nameJava="formAddRequired", typeDataBase="tinyint")
	private Integer formAddRequired;
	@YsField(nameDataBase="FormAddReadonly", nameJava="formAddReadonly", typeDataBase="tinyint")
	private Integer formAddReadonly;
	@YsField(nameDataBase="FormAddHidden", nameJava="formAddHidden", typeDataBase="tinyint")
	private Integer formAddHidden;
	@YsField(nameDataBase="FormEditState", nameJava="formEditState", typeDataBase="tinyint")
	private Integer formEditState;
	@YsField(nameDataBase="FormEditType", nameJava="formEditType", typeDataBase="varchar")
	private String formEditType;
	@YsField(nameDataBase="FormEditRequired", nameJava="formEditRequired", typeDataBase="tinyint")
	private Integer formEditRequired;
	@YsField(nameDataBase="FormEditReadonly", nameJava="formEditReadonly", typeDataBase="tinyint")
	private Integer formEditReadonly;
	@YsField(nameDataBase="FormEditHidden", nameJava="formEditHidden", typeDataBase="tinyint")
	private Integer formEditHidden;
	@YsField(nameDataBase="FormDetailState", nameJava="formDetailState", typeDataBase="tinyint")
	private Integer formDetailState;
	@YsField(nameDataBase="FormDetailType", nameJava="formDetailType", typeDataBase="varchar")
	private String formDetailType;
	@YsField(nameDataBase="ImportState", nameJava="importState", typeDataBase="tinyint")
	private Integer importState;
	@YsField(nameDataBase="ImportSortNo", nameJava="importSortNo", typeDataBase="tinyint")
	private Integer importSortNo;
	@YsField(nameDataBase="AppFormState", nameJava="appFormState", typeDataBase="tinyint")
	private Integer appFormState;
	@YsField(nameDataBase="AppFormType", nameJava="appFormType", typeDataBase="varchar")
	private String appFormType;
	@YsField(nameDataBase="ModalKey", nameJava="modalKey", typeDataBase="varchar")
	private String modalKey;
	@YsField(nameDataBase="ModalRelativeCode", nameJava="modalRelativeCode", typeDataBase="varchar")
	private String modalRelativeCode;
	@YsField(nameDataBase="ModalValueCode", nameJava="modalValueCode", typeDataBase="varchar")
	private String modalValueCode;
	@YsField(nameDataBase="DropdownRequestPath", nameJava="dropdownRequestPath", typeDataBase="varchar")
	private String dropdownRequestPath;
	@YsField(nameDataBase="MultyFileSourceType", nameJava="multyFileSourceType", typeDataBase="tinyint")
	private Integer multyFileSourceType;
	@YsField(nameDataBase="FrontExport", nameJava="frontExport", typeDataBase="tinyint")
	private Integer frontExport;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsCol setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMenuId() {
		return menuId;
	}
	public YsCol setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsCol setName(String name) {
		this.name = name;
		return this;
	}
	public String getCode() {
		return code;
	}
	public YsCol setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public YsCol setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public Integer getAuthType() {
		return authType;
	}
	public YsCol setAuthType(Integer authType) {
		this.authType = authType;
		return this;
	}
	public String getFrontType() {
		return frontType;
	}
	public YsCol setFrontType(String frontType) {
		this.frontType = frontType;
		return this;
	}
	public Integer getFrontEdit() {
		return frontEdit;
	}
	public YsCol setFrontEdit(Integer frontEdit) {
		this.frontEdit = frontEdit;
		return this;
	}
	public Integer getFrontShow() {
		return frontShow;
	}
	public YsCol setFrontShow(Integer frontShow) {
		this.frontShow = frontShow;
		return this;
	}
	public Integer getFrontWidth() {
		return frontWidth;
	}
	public YsCol setFrontWidth(Integer frontWidth) {
		this.frontWidth = frontWidth;
		return this;
	}
	public Integer getFrontFixed() {
		return frontFixed;
	}
	public YsCol setFrontFixed(Integer frontFixed) {
		this.frontFixed = frontFixed;
		return this;
	}
	public Integer getFrontAlign() {
		return frontAlign;
	}
	public YsCol setFrontAlign(Integer frontAlign) {
		this.frontAlign = frontAlign;
		return this;
	}
	public Integer getFrontConditionState() {
		return frontConditionState;
	}
	public YsCol setFrontConditionState(Integer frontConditionState) {
		this.frontConditionState = frontConditionState;
		return this;
	}
	public String getFrontConditionType() {
		return frontConditionType;
	}
	public YsCol setFrontConditionType(String frontConditionType) {
		this.frontConditionType = frontConditionType;
		return this;
	}
	public String getFrontConditionRangeType() {
		return frontConditionRangeType;
	}
	public YsCol setFrontConditionRangeType(String frontConditionRangeType) {
		this.frontConditionRangeType = frontConditionRangeType;
		return this;
	}
	public String getFrontConditionCode() {
		return frontConditionCode;
	}
	public YsCol setFrontConditionCode(String frontConditionCode) {
		this.frontConditionCode = frontConditionCode;
		return this;
	}
	public String getFrontConditionDefault() {
		return frontConditionDefault;
	}
	public YsCol setFrontConditionDefault(String frontConditionDefault) {
		this.frontConditionDefault = frontConditionDefault;
		return this;
	}
	public String getDictKeyBase() {
		return dictKeyBase;
	}
	public YsCol setDictKeyBase(String dictKeyBase) {
		this.dictKeyBase = dictKeyBase;
		return this;
	}
	public Integer getFormLength() {
		return formLength;
	}
	public YsCol setFormLength(Integer formLength) {
		this.formLength = formLength;
		return this;
	}
	public String getFormTip() {
		return formTip;
	}
	public YsCol setFormTip(String formTip) {
		this.formTip = formTip;
		return this;
	}
	public Integer getFormAddState() {
		return formAddState;
	}
	public YsCol setFormAddState(Integer formAddState) {
		this.formAddState = formAddState;
		return this;
	}
	public String getFormAddType() {
		return formAddType;
	}
	public YsCol setFormAddType(String formAddType) {
		this.formAddType = formAddType;
		return this;
	}
	public Integer getFormAddRequired() {
		return formAddRequired;
	}
	public YsCol setFormAddRequired(Integer formAddRequired) {
		this.formAddRequired = formAddRequired;
		return this;
	}
	public Integer getFormAddReadonly() {
		return formAddReadonly;
	}
	public YsCol setFormAddReadonly(Integer formAddReadonly) {
		this.formAddReadonly = formAddReadonly;
		return this;
	}
	public Integer getFormAddHidden() {
		return formAddHidden;
	}
	public YsCol setFormAddHidden(Integer formAddHidden) {
		this.formAddHidden = formAddHidden;
		return this;
	}
	public Integer getFormEditState() {
		return formEditState;
	}
	public YsCol setFormEditState(Integer formEditState) {
		this.formEditState = formEditState;
		return this;
	}
	public String getFormEditType() {
		return formEditType;
	}
	public YsCol setFormEditType(String formEditType) {
		this.formEditType = formEditType;
		return this;
	}
	public Integer getFormEditRequired() {
		return formEditRequired;
	}
	public YsCol setFormEditRequired(Integer formEditRequired) {
		this.formEditRequired = formEditRequired;
		return this;
	}
	public Integer getFormEditReadonly() {
		return formEditReadonly;
	}
	public YsCol setFormEditReadonly(Integer formEditReadonly) {
		this.formEditReadonly = formEditReadonly;
		return this;
	}
	public Integer getFormEditHidden() {
		return formEditHidden;
	}
	public YsCol setFormEditHidden(Integer formEditHidden) {
		this.formEditHidden = formEditHidden;
		return this;
	}
	public Integer getFormDetailState() {
		return formDetailState;
	}
	public YsCol setFormDetailState(Integer formDetailState) {
		this.formDetailState = formDetailState;
		return this;
	}
	public String getFormDetailType() {
		return formDetailType;
	}
	public YsCol setFormDetailType(String formDetailType) {
		this.formDetailType = formDetailType;
		return this;
	}
	public Integer getImportState() {
		return importState;
	}
	public YsCol setImportState(Integer importState) {
		this.importState = importState;
		return this;
	}
	public Integer getImportSortNo() {
		return importSortNo;
	}
	public YsCol setImportSortNo(Integer importSortNo) {
		this.importSortNo = importSortNo;
		return this;
	}
	public Integer getAppFormState() {
		return appFormState;
	}
	public YsCol setAppFormState(Integer appFormState) {
		this.appFormState = appFormState;
		return this;
	}
	public String getAppFormType() {
		return appFormType;
	}
	public YsCol setAppFormType(String appFormType) {
		this.appFormType = appFormType;
		return this;
	}
	public String getModalKey() {
		return modalKey;
	}
	public YsCol setModalKey(String modalKey) {
		this.modalKey = modalKey;
		return this;
	}
	public String getModalRelativeCode() {
		return modalRelativeCode;
	}
	public YsCol setModalRelativeCode(String modalRelativeCode) {
		this.modalRelativeCode = modalRelativeCode;
		return this;
	}
	public String getModalValueCode() {
		return modalValueCode;
	}
	public YsCol setModalValueCode(String modalValueCode) {
		this.modalValueCode = modalValueCode;
		return this;
	}
	public String getDropdownRequestPath() {
		return dropdownRequestPath;
	}
	public YsCol setDropdownRequestPath(String dropdownRequestPath) {
		this.dropdownRequestPath = dropdownRequestPath;
		return this;
	}
	public Integer getMultyFileSourceType() {
		return multyFileSourceType;
	}
	public YsCol setMultyFileSourceType(Integer multyFileSourceType) {
		this.multyFileSourceType = multyFileSourceType;
		return this;
	}
	public Integer getFrontExport() {
		return frontExport;
	}
	public YsCol setFrontExport(Integer frontExport) {
		this.frontExport = frontExport;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsCol setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsCol setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsCol setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsCol ysCol(
		Long menuId,
		String name,
		String code,
		Integer sortNo,
		Integer authType,
		String frontType,
		Integer frontEdit,
		Integer frontShow,
		Integer frontWidth,
		Integer frontFixed,
		Integer frontAlign,
		Integer frontConditionState,
		String frontConditionType,
		String frontConditionRangeType,
		String frontConditionCode,
		String frontConditionDefault,
		String dictKeyBase,
		Integer formLength,
		String formTip,
		Integer formAddState,
		String formAddType,
		Integer formAddRequired,
		Integer formAddReadonly,
		Integer formAddHidden,
		Integer formEditState,
		String formEditType,
		Integer formEditRequired,
		Integer formEditReadonly,
		Integer formEditHidden,
		Integer formDetailState,
		String formDetailType,
		Integer importState,
		Integer importSortNo,
		Integer appFormState,
		String appFormType,
		String modalKey,
		String modalRelativeCode,
		String modalValueCode,
		String dropdownRequestPath,
		Integer multyFileSourceType,
		Integer frontExport,
		Integer status
			) {
		YsCol entity = new YsCol();
		entity.setMenuId(menuId);
		entity.setName(name);
		entity.setCode(code);
		entity.setSortNo(sortNo);
		entity.setAuthType(authType);
		entity.setFrontType(frontType);
		entity.setFrontEdit(frontEdit);
		entity.setFrontShow(frontShow);
		entity.setFrontWidth(frontWidth);
		entity.setFrontFixed(frontFixed);
		entity.setFrontAlign(frontAlign);
		entity.setFrontConditionState(frontConditionState);
		entity.setFrontConditionType(frontConditionType);
		entity.setFrontConditionRangeType(frontConditionRangeType);
		entity.setFrontConditionCode(frontConditionCode);
		entity.setFrontConditionDefault(frontConditionDefault);
		entity.setDictKeyBase(dictKeyBase);
		entity.setFormLength(formLength);
		entity.setFormTip(formTip);
		entity.setFormAddState(formAddState);
		entity.setFormAddType(formAddType);
		entity.setFormAddRequired(formAddRequired);
		entity.setFormAddReadonly(formAddReadonly);
		entity.setFormAddHidden(formAddHidden);
		entity.setFormEditState(formEditState);
		entity.setFormEditType(formEditType);
		entity.setFormEditRequired(formEditRequired);
		entity.setFormEditReadonly(formEditReadonly);
		entity.setFormEditHidden(formEditHidden);
		entity.setFormDetailState(formDetailState);
		entity.setFormDetailType(formDetailType);
		entity.setImportState(importState);
		entity.setImportSortNo(importSortNo);
		entity.setAppFormState(appFormState);
		entity.setAppFormType(appFormType);
		entity.setModalKey(modalKey);
		entity.setModalRelativeCode(modalRelativeCode);
		entity.setModalValueCode(modalValueCode);
		entity.setDropdownRequestPath(dropdownRequestPath);
		entity.setMultyFileSourceType(multyFileSourceType);
		entity.setFrontExport(frontExport);
		entity.setStatus(status);
		return entity;
	}
}